package com.dd.ent.car.common.bean.comment;

import com.dd.ent.car.common.bean.User;

/**
 * Created by dengqu on 2016/8/29.
 */
public class Comment {
    private long id;
    private String uuid;//唯一识别
    private String content;
    private User user;
    private long createTime;
    private long likeCount;
    private Comment originComment;

    public Long getId() {
        return id;
    }

    public void setId(long id){
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content){
        this.content = content;
    }

    public String getUserAvatar() {
        return user == null ? null : user.getAvathor();
    }

    public String getUserName() {
        return user == null ? "车友圈" : user.getUserName();
    }


    public void setUser(User user) {
        this.user = user;
    }

    public User getUser(){
        return user;
    }


    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime){
        this.createTime = createTime;
    }
    public long getLikeCount() {
        return likeCount;
    }
    public void setLikeCount(long likeCount){
        this.likeCount = likeCount;
    }

    public Comment getOriginComment() {
        return originComment;
    }

    public void setOriginComment(Comment originComment) {
        this.originComment = originComment;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
}
